package com.utn.tp.integrador.conexion;

import android.content.Context;

public class InfoConexionSingleton {

	private InfoConexion infoConexion = null;
	private static InfoConexionSingleton infoConexionSingleton = null;

	private InfoConexionSingleton(Context context) {
		infoConexion = new InfoConexion(context.getApplicationContext());
	}

	private static void createInstance(Context context) {
		if (infoConexionSingleton == null)
			infoConexionSingleton = new InfoConexionSingleton(context);
	}

	public static InfoConexionSingleton getInstance(Context context) {
		if (infoConexionSingleton == null)
			createInstance(context);
		return infoConexionSingleton;
	}

	public InfoConexion getInfoConexion() {
		return infoConexion;
	}

}
